package TangkGame01;

public class Bomb {
    int x;
    int y;
    int life = 9 ;
    boolean isLive = true;

    public Bomb(int x, int y) {
        this.x = x;
        this.y = y;
    }

    public void BombDown(){
        if (life > 0){
            life--;
        }else {
            isLive = false;
        }
        System.out.println("当前Bomb生命=" + life + ",当前Bomb的isLive=" + isLive);
    }
}
